home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / clipbrd.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.9 KB  |  83 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'Clipbrd.pas' rev: 3.00
  6.  
  7. #ifndef ClipbrdHPP
  8. #define ClipbrdHPP
  9. #include <Graphics.hpp>
  10. #include <Classes.hpp>
  11. #include <Messages.hpp>
  12. #include <Windows.hpp>
  13. #include <SysInit.hpp>
  14. #include <System.hpp>
  15.  
  16. //-- user supplied -----------------------------------------------------------
  17.  
  18. namespace Clipbrd
  19. {
  20. //-- type declarations -------------------------------------------------------
  21. class DELPHICLASS TClipboard;
  22. class PASCALIMPLEMENTATION TClipboard : public Classes::TPersistent 
  23. {
  24.     typedef Classes::TPersistent inherited;
  25.     
  26. private:
  27.     int FOpenRefCount;
  28.     HWND FClipboardWindow;
  29.     bool FAllocated;
  30.     bool FEmptied;
  31.     void __fastcall Adding(void);
  32.     void __fastcall AssignGraphic(Graphics::TGraphic* Source);
  33.     void __fastcall AssignPicture(Graphics::TPicture* Source);
  34.     void __fastcall AssignToBitmap(Graphics::TBitmap* Dest);
  35.     void __fastcall AssignToMetafile(Graphics::TMetafile* Dest);
  36.     void __fastcall AssignToPicture(Graphics::TPicture* Dest);
  37.     System::AnsiString __fastcall GetAsText(void);
  38.     int __fastcall GetFormatCount(void);
  39.     Word __fastcall GetFormats(int Index);
  40.     void __fastcall SetAsText(const System::AnsiString Value);
  41.     void __fastcall SetBuffer(Word Format, void *Buffer, int Size);
  42.     void __fastcall WndProc(Messages::TMessage &Message);
  43.     
  44. protected:
  45.     virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
  46.     
  47. public:
  48.     virtual void __fastcall Assign(Classes::TPersistent* Source);
  49.     void __fastcall Clear(void);
  50.     void __fastcall Close(void);
  51.     Classes::TComponent* __fastcall GetComponent(Classes::TComponent* Owner, Classes::TComponent* Parent
  52.         );
  53.     int __fastcall GetAsHandle(Word Format);
  54.     int __fastcall GetTextBuf(char * Buffer, int BufSize);
  55.     bool __fastcall HasFormat(Word Format);
  56.     void __fastcall Open(void);
  57.     void __fastcall SetComponent(Classes::TComponent* Component);
  58.     void __fastcall SetAsHandle(Word Format, int Value);
  59.     void __fastcall SetTextBuf(char * Buffer);
  60.     __property System::AnsiString AsText = {read=GetAsText, write=SetAsText};
  61.     __property int FormatCount = {read=GetFormatCount, nodefault};
  62.     __property Word Formats[int Index] = {read=GetFormats};
  63. public:
  64.     /* TPersistent.Destroy */ __fastcall virtual ~TClipboard(void) { }
  65.     
  66. public:
  67.     /* TObject.Create */ __fastcall TClipboard(void) : Classes::TPersistent() { }
  68.     
  69. };
  70.  
  71. //-- var, const, procedure ---------------------------------------------------
  72. extern PACKAGE Word CF_PICTURE;
  73. extern PACKAGE Word CF_COMPONENT;
  74. extern PACKAGE TClipboard* __fastcall Clipboard(void);
  75. extern PACKAGE TClipboard* __fastcall SetClipboard(TClipboard* NewClipboard);
  76.  
  77. }    /* namespace Clipbrd */
  78. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  79. using namespace Clipbrd;
  80. #endif
  81. //-- end unit ----------------------------------------------------------------
  82. #endif    // Clipbrd
  83.